package com.chen.convert;


import com.chen.pojo.EmpDO;
import com.chen.vo.emp.EmpCreateReqVO;
import com.chen.vo.emp.EmpUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * ClassName: EmpConvert
 * Package: com.chen.convert
 * Description:
 *
 * @Author 陈俊辉
 * @Create 2024/4/11 21:57
 * @Version 1.0
 */
@Mapper
public interface EmpConvert {
    EmpConvert INSTANCE= Mappers.getMapper(EmpConvert.class);

    /**
     * 将创建请求参数转化成DO
     * @param reqVO
     * @return
     */
    EmpDO convert01(EmpCreateReqVO reqVO);

    EmpDO convert01(EmpUpdateReqVO reqVO);
}
